/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package textfilewriter.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author GiangLT
 */
public class Util {
    public static String formatDate(Date date, String pattern){
        SimpleDateFormat dateFormat = new SimpleDateFormat(pattern);
        return dateFormat.format(date);
    }
}
